package pl.prv.polanie.client.dto;

import com.google.gwt.user.client.rpc.IsSerializable;

/**
 * GroupDTO entity. @author MyEclipse Persistence Tools
 */

public class CSGroupDTO extends java.lang.Object implements IsSerializable, ICSDTO {


    // Fields    

     private long id;
     private long semestersYearGroupID;
     private String name;
     private Integer studentsNumber;
     private Integer scheduleProgress;


    // Constructors

    public CSGroupDTO(long id, long semestersYearGroupID, String name,
			Integer studentsNumber, Integer scheduleProgress) {
		super();
		this.id = id;
		this.semestersYearGroupID = semestersYearGroupID;
		this.name = name;
		this.studentsNumber = studentsNumber;
		this.scheduleProgress = scheduleProgress;
	}


	/** default constructor */
    public CSGroupDTO() {
    }

    
    /** full constructor */
    

    
    // Property accessors

	public long getId() {
		return id;
	}


	public String getName() {
		return name;
	}


	public Integer getStudentsNumber() {
		return studentsNumber;
	}


	public void setId(long id) {
		this.id = id;
	}



	public long getSemestersYearGroupID() {
		return semestersYearGroupID;
	}


	public void setSemestersYearGroupID(long semestersYearGroupID) {
		this.semestersYearGroupID = semestersYearGroupID;
	}


	public void setName(String name) {
		this.name = name;
	}


	public void setStudentsNumber(Integer studentsNumber) {
		this.studentsNumber = studentsNumber;
	}


	public Integer getScheduleProgress() {
		return scheduleProgress;
	}


	public void setScheduleProgress(Integer scheduleProgress) {
		this.scheduleProgress = scheduleProgress;
	}



	public String toLabel() {
		String r;
		r = "" + name + " [" + studentsNumber + "] " + scheduleProgress;
		return r;
	}
	
	
	public String toString() {
		String r;
		r = "" + name + " [" + studentsNumber + "] " + scheduleProgress;
		return r;
	}







}